# gui.py (c) 2010 by William Grover <wgrover@gmail.com>
# http://wgrover.com

"""
Implements some canned GUI functions.
"""

import tkFileDialog

def pickFile():
    filename = tkFileDialog.askopenfilename()
    return filename    

def pickDir():
    dirname = tkFileDialog.askdirectory()
    return dirname

def saveFile():
    filename = tkFileDialog.askopenfilename()
    return filename 

def saveAs():
    filename = tkFileDialog.asksaveasfilename()
    return filename
